package com.atguigu.lease.admin.service.impl;

import com.atguigu.lease.model.vo.FeeKeyVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.lease.model.bean.FeeKey;
import com.atguigu.lease.admin.service.FeeKeyService;
import com.atguigu.lease.admin.mapper.FeeKeyMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 1
* @description 针对表【fee_key(杂项费用名称表)】的数据库操作Service实现
* @createDate 2025-09-22 17:18:51
*/
@Service
public class FeeKeyServiceImpl extends ServiceImpl<FeeKeyMapper, FeeKey>
    implements FeeKeyService{
    //baseMapper: 业务类继承ServiceImpl传入了FeeKeyMapper泛型
    //  ioc容器创建 业务类对象时，父类ServiceImpl，自动装配了FeeKeyMapper，变量名为baseMapper
    @Override
    public List<FeeKeyVo> listFeeKeyVo() {
        return baseMapper.selectFeeKeyVo();//调用自定义方法查询数据 需要我们自己手写！！
    }
}




